<template>
	<view>
		<uni-group title="情况提醒" top="0" background-color="#413f3e">
			<view class="example-body">
					<uni-grid :column="2" :show-border="false" :square="false">
						<uni-grid-item v-if="index < 6" v-for="(item ,index) in list" :index="index" :key="index">
							<view class="grid-item-box">
						<image class="image" :src="item.url" mode="aspectFill" @click="gridClick(item.id)"/>
						<text class="text">{{item.text}} 条</text>
					</view>
					</uni-grid-item>
				</uni-grid>
			</view>	
		</uni-group>				 
		<uni-group title="路巡上报" top="1" background-color="#413f3e">
			<uni-card>已上报：<text class="color-text">10条</text></uni-card>
						 						
		</uni-group>
		
		<view class="example">
			<button type="primary" class="button" @click="submit()">新增上报</button>
		</view>	 
		
		<uni-group title="签到上报" top="2" background-color="#413f3e">
			
				<uni-card >签到总次数：<text class="color-text">31次</text></uni-card>
				<uni-card >签到天数：<text class="color-text">326天</text></uni-card>
				<uni-card >本月签到：<text class="color-text">20次</text></uni-card>	
			
					 						
		</uni-group>
		
		<view class="example">
			<button type="primary" class="button" @click="submit()">立即签到</button>
		</view>	 
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						url: '/static/images/statistics/wei.png',
						text: '360',
						id: 1
					},
					{
						url: '/static/images/statistics/zhong.png',
						text: '20',
						id: 2
					},
					{
						url: '/static/images/statistics/yi.png',
						text: '40',
						id: 3
					},
					{
						url: '/static/images/statistics/liu.png',
						text: '120',
						id: 4
					}
				],
			}
		},
		methods: {
			
		}
	}
</script>

<style>
	
	.example {
		padding: 0 10px 10px;
	}

    .example-body {
		display: block;
	}
	.grid-item-box {
		flex: 1;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 15px 0;
	}
	.image {
		width: 95rpx;
		height: 95rpx;
	}
	.text{
		font-size: 12px;
		
	}
	.color-text{
		color: #007AFF;
	}
</style>
